from flask import Flask
from sqlalchemy.sql.base import type_api

from src.api.UserRouter.users import users_api
from src.api.ArticleRouter.resource import res_api
from src.api.ArticleRouter.article import articles_api
from src.api.TypeRouter.types import types_api
from src.api.CommentRouter.comment import comments_api

def init_api(app: Flask):
    '''

    Args:
        app: Flask类型

    Returns: 注册蓝图

    '''
    app.register_blueprint(users_api)
    app.register_blueprint(res_api)
    app.register_blueprint(types_api)
    app.register_blueprint(articles_api)
    app.register_blueprint(comments_api)
    # 注册蓝图


